#include "CriticalException.hpp"
#include <cstdlib>

CriticalException::CriticalException(const char* str, int status)
	:Exception(std::string(str)), status(status)
{}

CriticalException::~CriticalException()
{}

void CriticalException::act()
{
	std::cerr << "[:: CRITICAL ::] " << this->msg << std::endl;	
	exit(status);
}

